﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Admin.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<MySite.Model.ConfigItemInfo>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	配置项列表
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>配置项列表</h2>
    <%: Html.ActionLink("新增", "ConfigItemAdd")%>
    <table width="100%" border="0" cellpadding="0" cellspacing="0" class="listable">
        <tr  class="listheader">
            <td></td>
            <td>
                名称
            </td>
            <td>
                键
            </td>
            <td>
                值
            </td>
            <td>
                说明
            </td>
        </tr>

    <% foreach (var item in Model) { %>
    
        <tr>
            <td>
                <%: Html.ActionLink("编辑", "ConfigItemEdit", new { pid = item.PID })%> |
                <%: Html.ActionLink("删除", "ConfigItemDelete", new { pid = item.PID })%>
            </td>
            <td>
                <%: item.ConfigName %>
            </td>
            <td>
                <%: item.ConfigKey %>
            </td>
            <td>
                <%: item.ConfigValue %>
            </td>
            <td>
                <%: item.ConfigDesc %>
            </td>
        </tr>
    
    <% } %>
    </table>
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="ScriptContent" runat="server">
</asp:Content>

